/*
 * Copyright (c) GoKeep by gokeep.org. 2022-2023. All rights reserved
 */
package org.gokeep.common.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "system.communication")
public class CommunicationProperties {
    /**
     * 主机地址
     */
    private String host;
    /**
     * 通信端口，默认：56780
     */
    private Integer port = 56780;
    /**
     * 线程数，默认8
     */
    private Integer threadNum;

    /**
     * 设置ReadBufferSize, 默认512
     */
    private int readBufferSize = 512;

    /**
     * 心跳配置
     */
    private HeartProperties heart;

}